﻿using System;
using System.ComponentModel;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using LeadThing.AbpZeroTemplate.Areas;

namespace LeadThing.AbpZeroTemplate.Areas.Dtos
{
    /// <summary>
    /// 地区列表Dto
    /// </summary>
    [AutoMapFrom(typeof(Area))]
    public class AreaListDto : EntityDto<long>
    {
        /// <summary>
        /// 行政区划代码
        /// </summary>
        [DisplayName("行政区划代码")]
        public string Code { get; set; }
        /// <summary>
        /// 城市名称
        /// </summary>
        [DisplayName("城市名称")]
        public string Title { get; set; }
        /// <summary>
        /// 父ID
        /// </summary>
        [DisplayName("父ID")]
        public int ParentId { get; set; }
        /// <summary>
        /// 城市等级(0:镇,1:区,2:村)
        /// </summary>
        [DisplayName("城市等级(0:镇,1:区,2:村)")]
        public int Level { get; set; }
        /// <summary>
        /// 户数
        /// </summary>
        [DisplayName("户数")]
        public int Households { get; set; }
        /// <summary>
        /// 人数
        /// </summary>
        [DisplayName("人数")]
        public int PersonNum { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// X坐标
        /// </summary>
        [DisplayName("X坐标")]
        public string XPoint { get; set; }

        /// <summary>
        /// Y坐标
        /// </summary>
        [DisplayName("Y坐标")]
        public string YPoint { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [DisplayName("内容")]
        public string Remarks { get; set; }


        /// <summary>
        /// 监控用户名
        /// </summary>
        [DisplayName("监控用户名")]
        public string MonitorUserId { get; set; }

        /// <summary>
        /// 监控密码
        /// </summary>
        [DisplayName("监控密码")]
        public string MonitorPwd { get; set; }

        /// <summary>
        /// 影像ID
        /// </summary>
        [DisplayName("摄像头ID")]
        public string CameraID { get; set; }

        #region 扩展字段

        /// <summary>
        /// 城市名称
        /// </summary>
        [DisplayName("城市名称")]
        public string DisplayTitle { get; set; }

        [DisplayName("父城市名称")]
        public string ParentName { get; set; }
        #endregion
    }
}
